package com.magicmovie.mapper;

import com.github.pagehelper.Page;
import com.magicmovie.entity.Dictionary;
import com.magicmovie.utils.QueryFilters;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DictionaryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Dictionary record);

    int insertSelective(Dictionary record);

    Dictionary selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Dictionary record);

    int updateByPrimaryKey(Dictionary record);

    List<Map<String,Object>> findByKeyNo(String keyNo);

    List<Dictionary> queryByParams(Map<String, Object> params);

    Page<Map<String,Object>> getByFilter(QueryFilters filters);
}